import numpy as np

# 创建4行1列的二维数组
L1 = [1, 2, 3, 4]

ndArray1 = np.array(L1)

# 创建2行2列的二维数组
L2 = [[1, 2], [3, 4]]
ndArray2 = np.array(L2)